package com.krtech.wecard.module.pay.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 微信支付记录
 */
@ApiModel(value = "com-krtech-wecard-module-pay-entity-WeixinPayRecord")
@Data
@TableName(value = "mail_weixin_pay_record")
public class WeixinPayRecord implements Serializable {
    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Integer id;

    /**
     * 创建人
     */
    @TableField(value = "CREATED_BY")
    @ApiModelProperty(value = "创建人")
    private String createdBy;

    /**
     * 创建时间
     */
    @TableField(value = "CREATED_TIME")
    @ApiModelProperty(value = "创建时间")
    private Date createdTime;

    /**
     * 更新人
     */
    @TableField(value = "UPDATED_BY")
    @ApiModelProperty(value = "更新人")
    private String updatedBy;

    /**
     * 更新时间
     */
    @TableField(value = "UPDATED_TIME")
    @ApiModelProperty(value = "更新时间")
    private Date updatedTime;

    /**
     * 订单号
     */
    @TableField(value = "mch_billno")
    @ApiModelProperty(value = "订单号")
    private String mchBillno;

    /**
     * 优惠卷外键
     */
    @TableField(value = "fk_coupon_receive_id")
    @ApiModelProperty(value = "优惠卷外键")
    private Integer fkCouponReceiveId;

    /**
     * 订单金额(单位分)
     */
    @TableField(value = "total_fee")
    @ApiModelProperty(value = "订单金额(单位分)")
    private Long totalFee;

    /**
     * 购买人电话
     */
    @TableField(value = "phone")
    @ApiModelProperty(value = "购买人电话")
    private String phone;

    /**
     * 是否直接返现
     */
    @TableField(value = "has_back_price")
    @ApiModelProperty(value = "是否直接返现")
    private Integer hasBackPrice;

    /**
     * 购买店铺名称
     */
    @TableField(value = "fk_store_name")
    @ApiModelProperty(value = "购买店铺名称")
    private String fkStoreName;

    /**
     * 购买店铺外键
     */
    @TableField(value = "fk_store_id")
    @ApiModelProperty(value = "购买店铺外键")
    private Integer fkStoreId;

    /**
     * 支付状态
     */
    @TableField(value = "pay_status")
    @ApiModelProperty(value = "支付状态")
    private Integer payStatus;

    /**
     * 优惠卷金额
     */
    @TableField(value = "coupon_receive_fee")
    @ApiModelProperty(value = "优惠卷金额")
    private Integer couponReceiveFee;

    /**
     * 消费者返现金额
     */
    @TableField(value = "back_price")
    @ApiModelProperty(value = "消费者返现金额")
    private Integer backPrice;

    /**
     * 商家返现
     */
    @TableField(value = "store_back_price")
    @ApiModelProperty(value = "商家返现")
    private Integer storeBackPrice;

    /**
     * 回调业务地址
     */
    @TableField(value = "back_url")
    @ApiModelProperty(value = "回调业务地址")
    private String backUrl;

    /**
     * 回调业务状态,0:未回调,1:回调
     */
    @TableField(value = "back_status")
    @ApiModelProperty(value = "回调业务状态,0:未回调,1:回调")
    private Integer backStatus;

    /**
     * 回调次数
     */
    @TableField(value = "back_count")
    @ApiModelProperty(value = "回调次数")
    private Integer backCount;

    /**
     * 上次回调时间
     */
    @TableField(value = "last_back_time")
    @ApiModelProperty(value = "上次回调时间")
    private Date lastBackTime;

    /**
     * 微信回调信息
     */
    @TableField(value = "xml_data")
    @ApiModelProperty(value = "微信回调信息")
    private String xmlData;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CREATED_BY = "CREATED_BY";

    public static final String COL_CREATED_TIME = "CREATED_TIME";

    public static final String COL_UPDATED_BY = "UPDATED_BY";

    public static final String COL_UPDATED_TIME = "UPDATED_TIME";

    public static final String COL_MCH_BILLNO = "mch_billno";

    public static final String COL_FK_COUPON_RECEIVE_ID = "fk_coupon_receive_id";

    public static final String COL_TOTAL_FEE = "total_fee";

    public static final String COL_PHONE = "phone";

    public static final String COL_HAS_BACK_PRICE = "has_back_price";

    public static final String COL_FK_STORE_NAME = "fk_store_name";

    public static final String COL_FK_STORE_ID = "fk_store_id";

    public static final String COL_PAY_STATUS = "pay_status";

    public static final String COL_COUPON_RECEIVE_FEE = "coupon_receive_fee";

    public static final String COL_BACK_PRICE = "back_price";

    public static final String COL_STORE_BACK_PRICE = "store_back_price";

    public static final String COL_BACK_URL = "back_url";

    public static final String COL_BACK_STATUS = "back_status";

    public static final String COL_BACK_COUNT = "back_count";

    public static final String COL_LAST_BACK_TIME = "last_back_time";

    public static final String COL_XML_DATA = "xml_data";
}